/*
 * RuntimeErrorCass.cpp
 *
 *  Created on: 3 июн. 2022 г.
 *      Author: nikitas
 */

#include "RuntimeErrorClass.h"

namespace STC_calc {

RuntimeErrorClass::RuntimeErrorClass(std::string description, const Enums::Error_types type) noexcept
{
	this->description = description;
	this->type = type;
}

const char* RuntimeErrorClass::what() const noexcept
{
	return (description.c_str());
}

RuntimeErrorClass::~RuntimeErrorClass() {
	// TODO Auto-generated destructor stub
}

void RuntimeErrorClass::exception_exec()
{
	std::cout << this->what() << std::endl;
}

} /* namespace STC_calc */
